<?php


namespace api\app\controller;


use cmf\controller\RestBaseController;

class KdController extends RestBaseController
{
    public function wuliu()
    {
        $url = 'https://api.kdniao.com/Ebusiness/EbusinessOrderHandle.aspx';
        $request = [
            'LogisticCode' => '78782788256317'
        ];
        $RequestData = json_encode($request);
        $key = '23ed8c4b-b66f-47bc-8d3e-98e14a6e3553';
        $sign =urlencode(base64_encode(md5($RequestData . $key)));
        $data = [
            'RequestData' => $RequestData,
            'RequestType' => 8002,
            'EBusinessID' => 1855265,
            'DataSign' => $sign,
            'Datatype' => 2,
        ];
        //halt($data);
        $res = curlRequest('POST',$url,'form',$data);
        $this->success('查询成功',$res);
    }

}